import request from '@/utils/request'

// 查询钉钉机器人配置列表
export function listConfRobotTokenTable(query) {
  return request({
    url: '/conf/ConfRobotTokenTable/list',
    method: 'get',
    params: query
  })
}

// 查询钉钉机器人配置详细
export function getConfRobotTokenTable(id) {
  return request({
    url: '/conf/ConfRobotTokenTable/' + id,
    method: 'get'
  })
}

// 新增钉钉机器人配置
export function addConfRobotTokenTable(data) {
  return request({
    url: '/conf/ConfRobotTokenTable',
    method: 'post',
    data: data
  })
}

// 修改钉钉机器人配置
export function updateConfRobotTokenTable(data) {
  return request({
    url: '/conf/ConfRobotTokenTable',
    method: 'put',
    data: data
  })
}

// 删除钉钉机器人配置
export function delConfRobotTokenTable(id) {
  return request({
    url: '/conf/ConfRobotTokenTable/' + id,
    method: 'delete'
  })
}
